package com.gitee.qdbp.general.trade.biz.order.manage.dao;

import java.util.List;
import com.gitee.qdbp.able.jdbc.paging.Paging;
import com.gitee.qdbp.base.annotation.OperateTraces;
import com.gitee.qdbp.base.model.condition.OrderWhere;
import com.gitee.qdbp.base.model.condition.Where;
import com.gitee.qdbp.general.trade.api.order.manage.model.OrderPaymentBean;
import com.gitee.qdbp.general.trade.api.order.manage.model.OrderPaymentUpdate;
import com.gitee.qdbp.general.trade.api.order.manage.model.OrderPaymentWhere;

/**
 * 订单支付DAO
 *
 * @author zhh
 * @version 180625
 */
@OperateTraces(enable = true)
public interface IOrderPaymentBasicDao {

    /**
     * 按条件查询单个对象,一般是根据ID或CODE查询
     *
     * @param where 查询条件
     * @return 订单支付
     */
    @OperateTraces(operate = "订单支付-查询")
    OrderPaymentBean find(Where<OrderPaymentWhere> where);

    /**
     * 按条件查询
     *
     * @param where 查询条件
     * @param paging 分页条件
     * @return 订单支付列表
     */
    @OperateTraces(operate = "订单支付-查询")
    List<OrderPaymentBean> list(OrderWhere<OrderPaymentWhere> where, Paging paging);

    /**
     * 创建订单支付记录
     *
     * @param model 订单支付信息
     * @return 影响行数
     */
    @OperateTraces(operate = "订单支付-创建")
    int insert(OrderPaymentBean model);

    /**
     * 批量创建订单支付记录
     *
     * @param model 订单支付信息
     * @return 影响行数
     */
    @OperateTraces(operate = "订单支付-批量创建")
    int inserts(List<OrderPaymentBean> models);

    /**
     * 按条件修改订单支付
     *
     * @param model 订单支付信息
     * @return 影响行数
     */
    @OperateTraces(operate = "订单支付-更新")
    int update(OrderPaymentUpdate model);

    /**
     * 按条件删除订单支付
     *
     * @param condition 条件
     * @return 影响行数
     */
    @OperateTraces(operate = "订单支付-删除")
    int delete(Where<OrderPaymentWhere> condition);
}
